package routers

import (
	"cute0517/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/user/register", &controllers.UserController{}, "POST:Register")
	beego.Router("/user/login", &controllers.UserController{}, "POST:Login")

	beego.Router("/types/add", &controllers.TypesController{}, "POST:TypesAdd")

	beego.Router("/cute/add", &controllers.CuteController{}, "POST:Add")
	beego.Router("/cute/upload", &controllers.CuteController{}, "POST:Upload")
	beego.Router("/cute/list", &controllers.CuteController{}, "GET:List")
	beego.Router("/cute/del", &controllers.CuteController{}, "POST:Del")
	beego.Router("/cute/detail", &controllers.CuteController{}, "POST:Detail")
}
